package com.note.gateway;

import com.note.common.factory.JedisPoolFactory;
import com.note.common.utils.JedisUtils;
import com.note.config.config.FeignConfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.amqp.RabbitAutoConfiguration;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Import;
import org.springframework.scheduling.annotation.EnableAsync;

/**
 * @Package：com.note.geteway
 * @Name：NoteGetewayApplication
 * @Author：热伊木
 * @Email：uyevan@163.com
 * @Date：2023-12-11-11:22
 * @Description：Spring启动
 */
@SpringBootApplication(exclude = {
        DataSourceAutoConfiguration.class,
        MongoAutoConfiguration.class,
        RabbitAutoConfiguration.class})
@EnableFeignClients(basePackages = "com.note.gateway.service.internal")
@Import({JedisPoolFactory.class, JedisUtils.class, FeignConfig.class})
@EnableAsync
public class NoteGetewayApplication {
    public static void main(String[] args) {
        SpringApplication.run(NoteGetewayApplication.class, args);
    }
}
